package cn.stylefeng.guns.modular.utils;

import com.jushuitan.api.ApiClient;
import com.jushuitan.api.AuthRequest;
import com.jushuitan.api.DefaultApiClient;
import com.jushuitan.api.util.AuthUtil;
import java.util.HashMap;
import java.util.Map;

public class JstTest {

    public static void main(String[] args) {
        ApiClient client = new DefaultApiClient();
        //String url = "https://openweb.jushuitan.com/auth";// 示例为测试地址，生产上请替换为正式地址
        String appKey = "c8e0d3e0782941e38f8da4d2f5a192f3";
        String appSecret = "99f4816e1dc543c78acefb79c8c66337";
        Map<String,Object> bipMap = new HashMap<>();
        AuthRequest authRequest = new AuthRequest.Builder(appKey, appSecret).build();
        // 构建请求对象
        String authUrl = AuthUtil.getAuthUrl(authRequest);
        System.out.println(authUrl);
    }
}
